﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cherry.Agile.ServiceModel.Routing {

    [AttributeUsage( AttributeTargets.Method)]
    public sealed class OperationReadWriteAttribute:Attribute {
        public ReadWriteUsage Usage { get; private set; }

        public OperationReadWriteAttribute(ReadWriteUsage usage = ReadWriteUsage.None) {
            this.Usage = usage;
        }
    }

    /// <summary>
    /// 接口读写行为
    /// </summary>
    public enum ReadWriteUsage {
        None,
        /// <summary>
        /// 只写
        /// </summary>
        WriteOnly,

        /// <summary>
        /// 只读
        /// </summary>
        ReadOnly
    }
}
